﻿    <script type="text/javascript">
        $(document).ready(function () {
            var p = new singlepage();
            p.c = "Way.Bus.WMS.ST.Controllers.OutOrder.ST_ConductioController";
            p.applyTo = "t1";
            p.onCommandClick = function (command, form, item) {
                if (command == "edit") {
                    if (item.ISSUBMIT == true) {
                        form.setdisabled(true);
                    }
                }
            }
            p.onGridAddOrEdit = function (grid, cmd, item, ischild) {
                if (ischild) {
                    if (cmd == "add")
                        return false;
                    if (cmd == "edit") {
                        return item.SEQUENCECODE;
                    }
                }
            }
            p.onFromValChange = function (from, item, isgridfrom) {
                if (isgridfrom) {
                    var grid = from.findgrid("Way.Bus.WMS.Model.InSequence");
                    if (item.SEQUENCECODE != undefined)
                        grid.setdisabled(!item.SEQUENCECODE);
                }
            }
            p.init();
        });
    </script>
<div id="t1"></div>
